package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

public class UserCard extends DataObject {

	private long userId;
	/**
	 * 月卡结束时间
	 */
	private long monthCardEndTime;
	/**
	 * 最近领取月卡奖励时间
	 */
	private long getMonthCardRewardTime;
	/**
	 * 年卡结束时间
	 */
	private long yearCardEndTime;
	/**
	 * 最近领取年卡时间
	 */
	private long getYearCardRewardTime;
	/**
	 * 周卡结束时间
	 */
	private long weekCardEndTime;

	private boolean weekCardExperiment;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		if(this.userId != userId) {
			this.userId = userId;
			setUpdateOption();
		}
	}

	public long getMonthCardEndTime() {
		return monthCardEndTime;
	}

	public void setMonthCardEndTime(long monthCardEndTime) {
		if(this.monthCardEndTime != monthCardEndTime) {
			this.monthCardEndTime = monthCardEndTime;
			setUpdateOption();
		}
	}

	public long getGetMonthCardRewardTime() {
		return getMonthCardRewardTime;
	}

	public void setGetMonthCardRewardTime(long getMonthCardRewardTime) {
		if(this.getMonthCardRewardTime != getMonthCardRewardTime) {
			this.getMonthCardRewardTime = getMonthCardRewardTime;
			setUpdateOption();
		}
	}

	public long getYearCardEndTime() {
		return yearCardEndTime;
	}

	public void setYearCardEndTime(long yearCardEndTime) {
		if(this.yearCardEndTime != yearCardEndTime) {
			this.yearCardEndTime = yearCardEndTime;
			setUpdateOption();
		}
	}

	public long getGetYearCardRewardTime() {
		return getYearCardRewardTime;
	}

	public void setGetYearCardRewardTime(long getYearCardRewardTime) {
		if(this.getYearCardRewardTime != getYearCardRewardTime) {
			this.getYearCardRewardTime = getYearCardRewardTime;
			setUpdateOption();
		}
	}

	public long getWeekCardEndTime() {
		return weekCardEndTime;
	}

	public void setWeekCardEndTime(long weekCardEndTime) {
		if(this.weekCardEndTime != weekCardEndTime) {
			this.weekCardEndTime = weekCardEndTime;
			setUpdateOption();
		}
	}

	public boolean isWeekCardExperiment() {
		return weekCardExperiment;
	}

	public void setWeekCardExperiment(boolean weekCardExperiment) {
		if(this.weekCardExperiment != weekCardExperiment) {
			this.weekCardExperiment = weekCardExperiment;
			setUpdateOption();
		}
	}
}
